package SimpleSelenium.buxfer.po;

import org.openqa.selenium.WebDriver;
import util.PropertyLoader;
import webDriver.WebDriverFactory;

/**
 * Created with IntelliJ IDEA.
 * User: dmytro.v.kozlov
 * Date: 7/12/13
 * Time: 9:58 AM
 * To change this template use File | Settings | File Templates.
 */

    public class Browser {

        private static String browserName =  PropertyLoader.loadProperty("browser.name");
        private static WebDriver driver = WebDriverFactory.createDriver(browserName);

        public static WebDriver driver() {
            return driver;
        }
        public static void open(String url) {
            driver.get(url);
        }

        public static void quit() {
            driver.quit();
        }

    }

